/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By 深圳中科鑫智科技有限公司
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.business.service.buyer.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shop.cereshop.business.dao.buyer.CereBuyerReceiveDAO;
import com.shop.cereshop.business.service.buyer.CereBuyerReceiveService;
import com.shop.cereshop.commons.domain.buyer.CereBuyerReceive;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CereBuyerReceiveServiceImpl extends ServiceImpl<CereBuyerReceiveDAO, CereBuyerReceive> implements CereBuyerReceiveService {

    @Override
    public List<CereBuyerReceive> queryByBuyerUserId(Long buyerUserId) {
        LambdaQueryWrapper<CereBuyerReceive> q1 = new LambdaQueryWrapper<>();
        q1.eq(CereBuyerReceive::getBuyerUserId,buyerUserId);
        return list(q1);
    }
}
